package net.wicp.tams.common.redis.spring;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import net.wicp.tams.common.redis.RedisAssit;
import net.wicp.tams.common.redis.pool.AbsPool;

@Configuration
public class RedisConfig {
	@Bean
	@ConditionalOnMissingBean
	public AbsPool redisPool() {
		AbsPool absPool = RedisAssit.getPool();
		return absPool;
	}
}
